{* ÜÖÄ *}
<div style="padding:10px;">
	<h2>Datenbank</h2>

	{if is_object($classConfig->data)}
	
		<p>
			...
		</p>
	
		<br />
			<div id="table_config_container_{$class.class_id}"  style="	border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #aaa;border-right:1px solid #bbb" >
				{include file="`$ccdsClassEditor_DIR`class_config_table.tpl" }
			</div>
		<br />
	
			
		<div style="float:left;">
			<table cellpadding="2" cellspacing="0" class="tableList">
				<thead>
					<tr style="border-bottom:1px solid #fff;">
						<th><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/database.png" /></th>
						<th colspan="2"> Database table details</th>
					</tr>
				</thead>
				<tbody>
					{foreach from=$mysql_stats key="label" item="value"}
						<tr>
							<td bgcolor="#e0e0e0"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/bullet_green.png" /></td>
							<td bgcolor="#e0e0e0">{$label}</td>
							<td bgcolor="#d0d0d0">{$value}</td>
						</tr>
					{/foreach}
				</tbody>
			</table>
		</div>
		<div style="float:left;margin-left:10px">
			<table cellpadding="2" cellspacing="0" class="tableList">
				<thead>
					<tr style="border-bottom:1px solid #fff;">
						<th><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/chart_bar.png" /></th>
						<th colspan="2"> Stats</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td bgcolor="#e0e0e0"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/bullet_green.png" /></td>
						<td bgcolor="#e0e0e0">Objekte</td>
						<td bgcolor="#d0d0d0">{$stats.objects}</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/bullet_green.png" /></td>
						<td bgcolor="#e0e0e0">Versionen</td>
						<td bgcolor="#d0d0d0">{$stats.versions}</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/database_error.png" /></td>
						<td bgcolor="#e0e0e0">Defekte Objekte</td>
						<td bgcolor="#d0d0d0">0</td>
					</tr>
				</tbody>
				<thead>
					<tr style="border-bottom:1px solid #fff;">
						<th><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/drive.png" /></th>
						<th colspan="2"> Speicherplatz</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td bgcolor="#e0e0e0"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/bullet_green.png" /></td>
						<td bgcolor="#e0e0e0">Gesamt</td>
						<td bgcolor="#d0d0d0">{$stats.total_size}</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/bullet_green.png" /></td>
						<td bgcolor="#e0e0e0">Daten</td>
						<td bgcolor="#d0d0d0">{$stats.data_size}</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/bullet_green.png" /></td>
						<td bgcolor="#e0e0e0">Index</td>
						<td bgcolor="#d0d0d0">{$stats.index_size}</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/bullet_green.png" /></td>
						<td bgcolor="#e0e0e0"> Zeilenlänge &oslash;</td>
						<td bgcolor="#d0d0d0">{$stats.avg_size_per_row}</td>
					</tr>
				</tbody>
			</table>
		</table>	
		</div>
		{else}
			<p>
			Diese Klasse enhält momentan keine Daten, bzw es existiert keine Konfigurationsdatei für die gewählte Klasse.<br /><br />
			Sie können nun:
			<ul>
				<li><a href="javascript:void(0);" onclick="{literal}xajax.request({ccdsfun:'ClassEditorClassConfig',ccdsclass:'ccdsClassEditor'},{parameters:[{{/literal}class_id:{$class.class_id},new_table:true{literal}}]}){/literal};">Eine neue Konfiguration sowie Datenbanktabelle erstellen</a></li>
				<li><a href="javascript:void(0);" onclick="{literal}xajax.request({ccdsfun:'ClassEditorClassConfig',ccdsclass:'ccdsClassEditor'},{parameters:[{{/literal}class_id:{$class.class_id},import_mysql:true{literal}}]}){/literal};">Eine neue Konfiguration auf Basis einer bestehenden Tabelle erstellen</a></li>
				<li><a href="javascript:void(0);" onclick="{literal}xajax.request({ccdsfun:'ClassEditorClassConfig',ccdsclass:'ccdsClassEditor'},{parameters:[{{/literal}class_id:{$class.class_id},import_table:true{literal}}]}){/literal};">Eine alte Konfiguration (CCDS2) importieren.</a></li>
				<li><a href="http://google.com" target="_blank">Irgendetwas anderes tun.</a></li>
			</p>
			{if "" != $error}
			<p class="error">{$error}</p>	
			
			{/if}
		
		{/if}
		
		<br style="clear:both;" />
	</div>
